<?php
//this script doesn't check for auth or anything..it is just a rough 
//backend. it just sets the cookie(which has to encrypted...).so we will need 
//encryption code in php and javascript too..
	$usrname = $_POST["usrname"];
	$pwd = $_POST["pwd"];
	setcookie("user",$usrname,time()+3600);
	setcookie("pwd",$pwd,time()+3600);
	setcookie("loggedin","true");
?>
